<script>

<? if($msg){ ?>
top.message("<?=$msg?>");
<? } ?>
</script>